package com.dongchedi.mapper;

import com.dongchedi.entity.OrderMaster;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.sql.Timestamp;
import java.util.List;
/**
 * @author leibidong
 * @description 主订单mapper对象
 * @date 2021/6/23
 */
@Mapper
@Component
public interface OrderMasterMapper {
    public List<OrderMaster> queryOrderByStatus(Integer customerId,Integer orderStatus);
    public Integer queryStatus(Integer customerId,Integer orderId);
    public Integer insertMasterOrder(OrderMaster orderMaster);
    public OrderMaster queryByorderId(Integer orderId);
    public Integer updateOrderStatus(Integer customerId, Integer orderMasterId, Timestamp payTime);
    public OrderMaster queryAddressByid(Integer id);
}
